<tagLib name="html" />
<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.ad.manage_ad}</h3>
        <ul class="tab1">
            <li><a href="__URL__/adList"><span>{$Think.lang.ad.all_ad}</span></a></li>
            <li><a href="__URL__/addAD"><span>{$Think.lang.ad.add_ad}</span></a></li>
            <li class="current"><a href="__URL__/locationList"><span>{$Think.lang.ad.all_location}</span></a></li>
            <li><a href="__URL__/addLocation"><span>{$Think.lang.ad.add_location}</span></a></li>
        </ul>
    </div>
    <p class="tips"></p>

    <form name="cpform" method="post" action="__URL__/positionList" id="cpform">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2">
        <tr>
            <th></th>
            <th>{$Think.lang.id}</th>
            <th>{$Think.lang.ad.loc_identifier}</th>
            <th>{$Think.lang.ad.loc_ad_count}</th>
            <th>{$Think.lang.ad.loc_type}</th>
            <th width="12%">{$Think.lang.actions}</th>
        </tr>
        <volist name="locationList" id="vo">
        <tr class="item">
            <td>&nbsp;</td>
            <td>{$vo.location_id}</td>
            <td><a href="#" title="{$vo.description}">{$vo.identifier}</a></td>
            <td><a href="__URL__/adList/location_id/{$vo.location_id}">{$vo.location_id|get_location_ad_count}</a></td>
            <td><eq name="vo.type" value="system">{$Think.lang.ad.build_in}<else/>{$Think.lang.custom}</eq></td>
            <td>
                <a class="act" href="__URL__/editLocation/location_id/{$vo.location_id}">{$Think.lang.edit}</a>&nbsp;&nbsp;&nbsp;
                <a class="act" href="__URL__/deleteLocation/location_id/{$vo.location_id}">{$Think.lang.delete}</a>
            </td>
        </tr>
        </volist>
        <tr class="nobg">
           <td colspan="15"><div class="cuspages right"><div class="pages">{$pagination}</div></div></td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />

